package com.zhongli.devplatform.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongli.devplatform.dto.ErrorRateDto;
import com.zhongli.devplatform.po.sys.ReadChapterExercisesTopicPO;
import com.zhongli.devplatform.vo.TopicVO;
import com.zhongli.devplatform.vo.sys.ErrorRateVo;
import com.zhongli.devplatform.vo.sys.TopicCorrectRateVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@Mapper
public interface ReadChapterExercisesTopicMapper extends BaseMapper<ReadChapterExercisesTopicPO> {
    List<Integer> selectWrongTopicIds(List<Integer> chapterExerciseIds);

    List<ErrorRateVo> studyReportErrorRate(ErrorRateDto errorRateDto);

    TopicCorrectRateVo studyReportOfAllTopicCorrectRate(ErrorRateDto errorRateDto);

    List<TopicVO> selectWrongTopic(Integer chapterExerciseId);
}
